"""Add thesis type field

Revision ID: add_thesis_type
Revises: add_proposal_file
Create Date: 2024-03-21

"""
from alembic import op
import sqlalchemy as sa

def upgrade():
    # 添加 thesis_type 列，设置默认值为 'design'
    op.add_column('thesis', sa.Column('thesis_type', sa.String(20), nullable=False, server_default='design'))

def downgrade():
    # 删除 thesis_type 列
    op.drop_column('thesis', 'thesis_type') 